import request from '@/utils/request';
// list
export const jiaoshipingfenList = (params) => {
    return request({
        url: '/jiaoshipingfen/page',
        method: 'post',
        data: params,
    })
};
export const jiaoshipingfenDetail = (id) => {
    return request({
        url: '/jiaoshipingfen/'+id,
        method: 'get',
    })
};
// add
export const jiaoshipingfenSave = (params) => {
    return request({
        url: '/jiaoshipingfen',
        method: 'post',
        data: params,
    })
};
// updt
export const jiaoshipingfenEdit = (params) => {
    return request({
        url: '/jiaoshipingfen',
        method: 'put',
        data: params,
    })
};
// delete
export const jiaoshipingfenDelete = (id) => {
    return request({
        url: '/jiaoshipingfen/'+id,
        method: 'delete',
    })
};
// pldel
export const jiaoshipingfenDeleteList = (jiaoshipingfens) => {
    return request({
        url: '/jiaoshipingfen/deleteList',
        data:{list:jiaoshipingfens},
        method: 'post',
    })
};
// all
export const jiaoshipingfenAllList = () => {
    return request({
        url: '/jiaoshipingfen',
        method: 'get',
    })
};

